﻿<UserControl x:Class="UIComposition.EmployeeModule.Views.EmployeeListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
             xmlns:prism="http://www.codeplex.com/prism">

	<Grid x:Name="LayoutRoot">
		<Grid.Background>
			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
				<GradientStop Color="#FF7B97D4" />
				<GradientStop Color="#FF244C8D" Offset="1" />
			</LinearGradientBrush>
		</Grid.Background>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<TextBlock Grid.Row="0" Text="Employee List View" TextWrapping="Wrap" Grid.RowSpan="1" Grid.ColumnSpan="2" FontSize="18" Foreground="#FF2F3806" Margin="8,8,8,8" />

        <Controls:DataGrid x:Name="EmployeesList" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" SelectionMode="Single"
                           ItemsSource="{Binding Path=Employees}" AutoGenerateColumns="False" Margin="8"
                           AutomationProperties.AutomationId="EmployeesListGrid">
			<Controls:DataGrid.Columns>
				<Controls:DataGridTextColumn Header="First Name" Binding="{Binding Path=Name}" IsReadOnly="True" Width="*" />
				<Controls:DataGridTextColumn Header="Last Name" Binding="{Binding Path=LastName}" IsReadOnly="True" Width="*" />
			</Controls:DataGrid.Columns>
		</Controls:DataGrid>

	</Grid>

</UserControl>